(function () {
	window.Achievement = Spine.Model.sub();
	window.Achievement.configure("Achievement", "id", "name", "level", "episode", "money", "invited_friends", "levels_fast_completed", "bonus");
	window.Achievement.extend({
		getAllAchievements: function () {
			var a1 = new window.Achievement({
				id: 1,
				name: 'Новичок',
				level: 34,
				episode: 1,
				money: 100,
				invited_friends: 3,
				levels_fast_completed: 3,
				bonus: 50
			});
			a1.save();
			var a2 = new window.Achievement({
				id: 1,
				name: 'Крутой',
				level: 100,
				episode: 4,
				money: 1000,
				invited_friends: 10,
				levels_fast_completed: 30,
				bonus: 300
			});
			a2.save();
			return [a1, a2];
		}
	});
})();